Sensitivity event box should only be toggled if cell view is non-NULL
authorKristian Rietveld <kris@gtk.org>
Mon, 21 Sep 2009 10:57:39 +0000 (12:57 +0200)
committerKristian Rietveld <kris@gtk.org>
Mon, 21 Sep 2009 10:59:44 +0000 (12:59 +0200)
gtk/gtkcombobox.c

index b2886d6cc3026e4ffa40f06116cfd3e4eaffc86f..c5e021f0895757257c1de4788273341557b67e42 100644 (file)
@@ -3220,7 +3220,8 @@ gtk_combo_box_update_sensitivity (GtkComboBox *combo_box)
   gtk_widget_set_sensitive (combo_box->priv->button, sensitive);
 
   /* In list-mode, we also need to update sensitivity of the event box */
-  if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view))
+  if (GTK_IS_TREE_VIEW (combo_box->priv->tree_view)
+      && combo_box->priv->cell_view)
     gtk_widget_set_sensitive (combo_box->priv->box, sensitive);
 }